from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
import sys

class TableStuList(QWidget):
    def __init__(self,parent=None):
        super().__init__(parent=parent)
        self.table = QTableWidget(self)
        self.table.setColumnCount(9)
        self.table.setRowCount(10)
        self.table.setColumnWidth(0,30)
        self.table.setColumnWidth(1,80)
        self.table.setColumnWidth(2,60)
        self.table.setColumnWidth(3,90)
        self.table.setColumnWidth(4,38)
        self.table.setColumnWidth(5,60)
        self.table.setColumnWidth(6,60)
        self.table.setColumnWidth(7,75)
        self.table.setColumnWidth(8,85)
        self.table.setHorizontalHeaderLabels(['序号','学号','姓名','学院','性别','初修/重修','主修/辅修','班级','考试状态',])
        header_font = QFont("PingFang SC Regular")
        header_font.setPixelSize(13)
        self.table.horizontalHeader().setFont(header_font)
        self.table.verticalHeader().setVisible(False)
        self.table.setFixedSize(580,360)
class TableImport(QWidget):
    def __init__(self,parent=None):
        super().__init__(parent=parent)
        self.table = QTableWidget(self)
        self.table.setColumnCount(7)
        self.table.setRowCount(10)
        self.table.setHorizontalHeaderLabels(['序号','学号','姓名','课后作业1','课后作业2','课后作业3','课后作业4'])
        self.table.move(0,0)
        self.table.setColumnWidth(0,30)
        self.table.setColumnWidth(1,80)
        self.table.setColumnWidth(2,60)
        self.table.verticalHeader().setVisible(False)
        self.table.setFixedSize(700,360)
        header_font = QFont("PingFang SC Regular")
        header_font.setPixelSize(13)
        self.table.horizontalHeader().setFont(header_font)
class TableResult(QWidget):
    def __init__(self,parent=None):
        super().__init__(parent=parent)
        self.table = QTableWidget(self)
        self.table.setColumnCount(9)
        self.table.setRowCount(4)
        self.table.setHorizontalHeaderLabels(['毕业目标','0-0.59','0.60-0.69','0.70-0.79','0.80-0.89','0.90-1.00','平均值','最低值','最高值',])
        self.table.move(0,0)
        self.table.verticalHeader().setVisible(False)
        self.table.setFixedSize(580,360)
        for i in range(0,9):
            self.table.setColumnWidth(i,65)
        self.table.setColumnWidth(0,60)
        header_font = QFont("PingFang SC Regular")
        header_font.setPixelSize(13)
        self.table.horizontalHeader().setFont(header_font)
if __name__=="__main__":
    app = QApplication(sys.argv)
    window = TableStuList()
    window.show()
    sys.exit(app.exec_())